package com.lizhenhua.stockdel.controller;

import com.lizhenhua.stockdel.service.StockDelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class StockDelController {
    @Autowired
    private StockDelService stockDelService;

    @DeleteMapping("/del/{cids}")
    public int DelShop(@PathVariable("cids") String cids) {

        int i = stockDelService.delShopCart(cids);

        return i;
    }


}
